<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			var a=1000;
			var year=0;
			while(a<5000){
				a*=1.05;
				year++;
			}
			console.log(a);
			console.log(year+"年");
		</script>
	</head>
	<body>
	</body>
</html>
